package com.example.designModel.observe.enhance;

import com.example.designModel.observe.process.Observe;

/**
 * 通知者
 * */
public abstract class Subject {
    private EventHandler eventHandler = new EventHandler();
    private String actionStatus;

    public String getActionStatus() {
        return actionStatus;
    }

    public void setActionStatus(String actionStatus) {
        this.actionStatus = actionStatus;
    }

    public EventHandler getEventHandler() {
        return eventHandler;
    }

    public void setEventHandler(EventHandler eventHandler) {
        this.eventHandler = eventHandler;
    }
    public abstract void addListener(Object object,String methodName, Object...args);

    public abstract void notifyX();
}
